package com.woniuxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.entity.Manager;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

/**
 * 管理员Mapper接口
 */
public interface ManagerMapper extends BaseMapper<Manager> {

    /**
     * @param account:
     * @return: com.woniuxy.back.entity.Manager
     * @description:根据管理员名查询管理员
     * @date: 2021/8/11 20:30
     * @author: 魏炳豪
     */
    @Select("select * from gfr_manager where manager_account=#{account}")
    @Results({
            @Result(column = "manager_password",property = "password"),
            @Result(column = "manager_account",property = "account"),
            @Result(column = "manager_status",property = "status")
    })
    Manager getByManagerAccount(String account);
}
